{"ast":null,"code":"// form item name black list.  in form ,you can use form.id get the form item element.\n// use object hasOwnProperty will get better performance if black list is longer.\nvar formItemNameBlackList = ['parentNode'];\n// default form item id prefix.\nvar defaultItemNamePrefixCls = 'form_item';\nexport function toArray(candidate) {\n  if (candidate === undefined || candidate === false) return [];\n  return Array.isArray(candidate) ? candidate : [candidate];\n}\nexport function getFieldId(namePath, formName) {\n  if (!namePath.length) return undefined;\n  var mergedId = namePath.join('_');\n  if (formName) {\n    return \"\".concat(formName, \"_\").concat(mergedId);\n  }\n  var isIllegalName = formItemNameBlackList.includes(mergedId);\n  return isIllegalName ? \"\".concat(defaultItemNamePrefixCls, \"_\").concat(mergedId) : mergedId;\n}","map":{"version":3,"names":["formItemNameBlackList","defaultItemNamePrefixCls","toArray","candidate","undefined","Array","isArray","getFieldId","namePath","formName","length","mergedId","join","isIllegalName","includes"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/form/util.js"],"sourcesContent":["// form item name black list.  in form ,you can use form.id get the form item element.\n// use object hasOwnProperty will get better performance if black list is longer.\nconst formItemNameBlackList = ['parentNode'];\n// default form item id prefix.\nconst defaultItemNamePrefixCls = 'form_item';\nexport function toArray(candidate) {\n  if (candidate === undefined || candidate === false) return [];\n  return Array.isArray(candidate) ? candidate : [candidate];\n}\nexport function getFieldId(namePath, formName) {\n  if (!namePath.length) return undefined;\n  const mergedId = namePath.join('_');\n  if (formName) {\n    return `${formName}_${mergedId}`;\n  }\n  const isIllegalName = formItemNameBlackList.includes(mergedId);\n  return isIllegalName ? `${defaultItemNamePrefixCls}_${mergedId}` : mergedId;\n}"],"mappings":"AAAA;AACA;AACA,IAAMA,qBAAqB,GAAG,CAAC,YAAY,CAAC;AAC5C;AACA,IAAMC,wBAAwB,GAAG,WAAW;AAC5C,OAAO,SAASC,OAAO,CAACC,SAAS,EAAE;EACjC,IAAIA,SAAS,KAAKC,SAAS,IAAID,SAAS,KAAK,KAAK,EAAE,OAAO,EAAE;EAC7D,OAAOE,KAAK,CAACC,OAAO,CAACH,SAAS,CAAC,GAAGA,SAAS,GAAG,CAACA,SAAS,CAAC;AAC3D;AACA,OAAO,SAASI,UAAU,CAACC,QAAQ,EAAEC,QAAQ,EAAE;EAC7C,IAAI,CAACD,QAAQ,CAACE,MAAM,EAAE,OAAON,SAAS;EACtC,IAAMO,QAAQ,GAAGH,QAAQ,CAACI,IAAI,CAAC,GAAG,CAAC;EACnC,IAAIH,QAAQ,EAAE;IACZ,iBAAUA,QAAQ,cAAIE,QAAQ;EAChC;EACA,IAAME,aAAa,GAAGb,qBAAqB,CAACc,QAAQ,CAACH,QAAQ,CAAC;EAC9D,OAAOE,aAAa,aAAMZ,wBAAwB,cAAIU,QAAQ,IAAKA,QAAQ;AAC7E"},"metadata":{},"sourceType":"module"}